using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using yq.IBase;
using yq.Model.Base;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using cn.Util;

namespace yq.Model.Logic
{
    /// <summary>
    /// Report_List - 报告 - 对象继承类
    /// </summary>
    [MetadataType(typeof(ReportListValidaTion))]
    public class ReportList : IReportList<ReportList>
    {


       #region 生成实体类验证属性
       /// <summary>
       /// 辅助验证类
       /// </summary>
       [Bind]
       public class ReportListValidaTion
       {

     

        /// <summary>
        /// 报告ID
        /// </summary>
        [Display(Name ="报告ID")]
        [Required]
        [StringLength(36)]
        public String ReportId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 用户ID
        /// </summary>
        [Display(Name ="用户ID")]
        [Required]
        [StringLength(36)]
        public String UserId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 标题
        /// </summary>
        [Display(Name ="标题")]
        [Required]
        [StringLength(100)]
        public String Title
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 内容Id
        /// </summary>
        [Display(Name ="内容Id")]
        [Required]
        [StringLength(36)]
        public String ContentId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 报告类型
        /// </summary>
        [Display(Name ="报告类型")]
       [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public yq.Enums.ReportList.Type Type
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 状态
        /// </summary>
        [Display(Name ="状态")]
       [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public yq.Enums.ReportList.Status Status
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 报告日期
        /// </summary>
        [Display(Name ="报告日期")]

        public DateTime ReporTime
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 创建时间
        /// </summary>
        [Display(Name ="创建时间")]

        public DateTime SubmitTime
        {
         get; set; 
        }


       

       
       }
       #endregion 生成实体类验证属性
    }
}
